if $programname == 'flanneld' then {
   action(type="omfile" file="/var/log/flanneld/flanneld.log")
}